package com.nursery.teacher.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nursery.teacher.dao.TeacherInfoMapper;
import com.nursery.teacher.entity.TeacherInfo;
import com.nursery.teacher.entity.TeacherInfoExample;
import com.nursery.teacher.service.TeacherInfoService;

@Service
public class TeacherInfoServiceImpl implements TeacherInfoService {

	@Autowired
	TeacherInfoMapper teacherInfoMapper;

	public long countByExample(TeacherInfoExample example) {
		return teacherInfoMapper.countByExample(example);
	}

	public void deleteByPrimaryKey(Integer id) throws Exception {
		teacherInfoMapper.deleteByPrimaryKey(id);
	}

	public void insert(TeacherInfo record) throws Exception {
		teacherInfoMapper.insertSelective(record);
	}

	public List<TeacherInfo> selectByExample(TeacherInfoExample example) {
		return teacherInfoMapper.selectByExample(example);
	}

	public TeacherInfo selectByPrimaryKey(Integer id) {
		return teacherInfoMapper.selectByPrimaryKey(id);
	}

	public void updateByPrimaryKeySelective(TeacherInfo record) throws Exception {
		teacherInfoMapper.updateByPrimaryKeySelective(record);
	}

	public void updateByPrimaryKey(TeacherInfo record) throws Exception {
		teacherInfoMapper.updateByPrimaryKey(record);
	}
	
}
